<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<body>

	<h2>发布新帖表单</h2>
	<s:form action="message/messageManagerAction!sendMessage.action" method="post">
		<!-- form_h类用于格式化水平排列的表单 -->
		<table class="form_h">
			<tr>


				<th><label for="name">发帖者 </label></th>
				<td><s:textfield class="input-small" readonly="true"
						label="发帖者" value="%{#session.loginUser.username}"></s:textfield>

				</td>
			</tr>



			<tr>
				<th><label for="url"> </label></th>
				<td><s:textfield class="input-big" name="message.title"
						label="标题"></s:textfield></td>
			</tr>

			<tr>
				<th><label for="flex"> </label></th>
				<td><s:textfield id="flex" class="input-flex"
						name="message.content" label="内容"></s:textfield></td>
			</tr>


			<tr>
				<th></th>
				<td><s:hidden name="message.user.id" label="标识"
						value="%{#session.loginUser.id}"></s:hidden> <s:submit
						class="button" name="submit" label="发帖"></s:submit></td>
			</tr>
		</table>
	</s:form>
</body>
</html>

